[MYSQL Query] How to select all the entries from the last month?
Posted
by rasouza
on Stack Overflow
See other posts from Stack Overflow
or by rasouza
Published on 2010-06-01T23:19:01Z
Indexed on
2010/06/01
23:23 UTC
Read the original article
Hit count: 128
mysql
I have a table with entries which has a DATE field. Each entry has a distinct date. I'd like to select all the entries from the last month. How?
I tried SELECT * FROM registries WHERE reg_date = DATE_FORMAT(MAX(reg_date), "%m")
without success
thx
© Stack Overflow or respective owner